<template>
  <div class="router-content">
    <div class="mian-header">按次消费规则的列表</div>
    <div class="main-content">
      按次消费规则可以根据卡类型，餐别，消费次数进行制订消费规则。
      <img src="/static/imgs/card/rules_1.png"/>
    </div>
    <div class="mian-header">新建规则</div>
    <div class="main-content">
      点击“新建规则”出现编辑消费规则对话框，填写好设定后点击“提交”就能够新建一个消费规则。
      <img src="/static/imgs/card/rules_2.png"/>
    </div>
    <div class="mian-header">编辑规则</div>
    <div class="main-content">
      在“按次消费规则”页面点击“编辑”进入编辑消费规则画面，能够修改每天、每餐消费次数和可用餐别，修改成功后点击提交
      <img src="/static/imgs/card/rules_3.png"/>
      <img src="/static/imgs/card/rules_4.png"/>
    </div>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
export default {
  name: 'index',
  data () {
    return {
      menus: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
  }
}
</script>
<style>
</style>
